//
//  WLDatePicker.h
//  WanLian
//
//  Created by muzhuang on 2018/10/9.
//  Copyright © 2018年 wanlian. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol WLDatePickerDelegate <NSObject>

//当UIDatePicker值变化时所用到的代理
- (void)picker:(UIDatePicker *)picker valueChanged:(NSDate *)date;

@end

//NS_ASSUME_NONNULL_BEGIN

@interface WLDatePicker : UIView
{
    UITapGestureRecognizer *tapGesture;
}

@property(weak, nonatomic) id<WLDatePickerDelegate> delegate;

@property(strong, nonatomic) UIDatePicker *picker;

- (void)showWithFrame:(CGRect)frame andDatePickerMode:(UIDatePickerMode)mode;

- (void)dismiss;

- (void)valueChanged:(UIDatePicker *)picker;

@end

//NS_ASSUME_NONNULL_END
